using System;
using System.Collections.Generic;
using System.Text;

namespace Sedna.Core.Persistence
{
    public class HqlSubqueryBuilder: HqlQueryBuilder
    {
        private HqlQueryBuilder parent;
        
        public HqlSubqueryBuilder(HqlQueryBuilder parent)
        {
            this.parent = parent;    
        }

        internal protected override string AddParam(object param)
        {
            return parent.AddParam(param);
        }

        public override string ToString()
        {
            return ToHql();
        }
    }
}
